package com.gwl.circle.user.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author 高万里
 */
@Data
@NoArgsConstructor
@TableName("t_user_log")
public class UserLog {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private Integer type;

    private String content;

    private String ip;

    private Date ctime;

    public UserLog(Integer uid, Integer type, String content, String ip) {
        this.uid = uid;
        this.type = type;
        this.content = content;
        this.ip = ip;
        this.ctime = new Date();
    }
}
